xen.git
20 years agoRemove semicolons from Console.py. It's a habit.
danms@us.ibm.com [Thu, 10 Nov 2005 10:47:27 +0000 (11:47 +0100)]
Remove semicolons from Console.py.  It's a habit.

20 years agoMerged.
emellor@leeni.uk.xensource.com [Thu, 10 Nov 2005 10:43:26 +0000 (11:43 +0100)]
Merged.

20 years agoFix shadow bitmap sizing for logdirty mode.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 18:18:47 +0000 (19:18 +0100)]
Fix shadow bitmap sizing for logdirty mode.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMove linear faulting address (%cr2) out of the page fault
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 16:23:46 +0000 (17:23 +0100)]
Move linear faulting address (%cr2) out of the page fault
stack frame and into vcpu_info_t (in shared_info_t). This
makes the guest #PF handler much more similar to native.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdded missing __init__.py.
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 15:40:07 +0000 (16:40 +0100)]
Added missing __init__.py.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoCope with the ValueError exception that we get if you use Xend with the recent
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 15:08:37 +0000 (16:08 +0100)]
Cope with the ValueError exception that we get if you use Xend with the recent
change to parsing memory configuration against a store with entries written
by an older Xend.

Added maxmem field to list of things to be read from the store on recreate.

20 years agoSupport recent change moving virtual IOAPIC model into Xen for
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:53:12 +0000 (14:53 +0100)]
Support recent change moving virtual IOAPIC model into Xen for
ia64/VTI. Now ia64/vti will create links to arch/x86/dm/vmx_vioapic.c
and include/x86/vmx_vlapic.h.

Firstly, a small change to common virtual IOAPIC model to be used by
both sides. Also some compilation fix to tools is included in first
one. Secondly, there are ia64-specific changes to hook to common
IOAPIC model.

Based on this patch upon latest xen-ia64-unstable tip, we can see
multiple domains working again on XEN/IA64, including both domU and
VTI domain simultaneously in run-time.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Anthony Xu <Anthony.xu@intel.com>
Signed-off-by Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by Eddie Dong <eddie.dong@intel.com>

20 years agoAttached patch allows building of netfront and blkfront as modules
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:42:15 +0000 (14:42 +0100)]
Attached patch allows building of netfront and blkfront as modules
(xennet.ko and xenblk.ko).

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agognttab_request_free_callback needs to be exported for building modular
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:41:37 +0000 (14:41 +0100)]
gnttab_request_free_callback needs to be exported for building modular
blkfront

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoRemove use of get_gendisk in blkfront gen_gendisk is no long exported
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:41:14 +0000 (14:41 +0100)]
Remove use of get_gendisk in blkfront gen_gendisk is no long exported
by 2.6 kernel. Now blkfront can be built as a kernel module.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoAllow xen_create_contiguous_region() to fail gracefully if it
kaf24@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 13:39:32 +0000 (14:39 +0100)]
Allow xen_create_contiguous_region() to fail gracefully if it
cannot allocate a contiguous multi-page extent of memory. This
should avoid unnecessary crashes in the xen-specific skbuff
cache constructor.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMore fixes for save/restore; use configured memory for generating sxp.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 12:59:53 +0000 (13:59 +0100)]
More fixes for save/restore; use configured memory for generating sxp.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoThis patch prevents the xm-test console library from duplicating the
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:39:38 +0000 (12:39 +0100)]
This patch prevents the xm-test console library from duplicating the
debugging output, when it's turned on.  This just makes it easier to
read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds a new test that attempts to save and restore a domain
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:39:05 +0000 (12:39 +0100)]
This patch adds a new test that attempts to save and restore a domain
with a block device attached.  It starts up a domain, mounts a block
device, writes data to it, saves, restores, and then verifies that the
block device can still be read.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoChmod a+x.
emellor@leeni.uk.xensource.com [Wed, 9 Nov 2005 11:38:46 +0000 (12:38 +0100)]
Chmod a+x.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix 64-bit build.
smh22@firebug.cl.cam.ac.uk [Wed, 9 Nov 2005 08:02:59 +0000 (09:02 +0100)]
Fix 64-bit build.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoEnable save/restore for PAE domains.
smh22@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 17:42:07 +0000 (18:42 +0100)]
Enable save/restore for PAE domains.

This includes quite a few cleanups / refactoring of the old code, some
of which is intended to prepare for 64-bit save/restore.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoUse '-' instead of '_' in xen version strings.
smh22@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 17:39:58 +0000 (18:39 +0100)]
Use '-' instead of '_' in xen version strings.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix alloc_skb() to ensure data is always physically contiguous.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 15:48:42 +0000 (16:48 +0100)]
Fix alloc_skb() to ensure data is always physically contiguous.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoRationalise the kernel event-channel binding interfaces. The
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 14:58:31 +0000 (15:58 +0100)]
Rationalise the kernel event-channel binding interfaces. The
new interfaces are simpler and should be implementable by any
architecture.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoIncrease the static constant default number of loopback interfaces, nloopbacks,
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 14:15:02 +0000 (15:15 +0100)]
Increase the static constant default number of loopback interfaces, nloopbacks,
to 8.  These interfaces are very cheap, so there's no problem having a few
spare.  Anyone with more than 8 NICs can still use the kernel command line or
the module parameter line to pass a larger limit to this module.

Detail the kernel command line parameter for nloopbacks in the diagnostic in
network-bridge.

Closes bug #381.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 13:56:14 +0000 (14:56 +0100)]
Merged.

20 years agoFix two leaks in the pyxc interface. The dictionaries are being added
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 13:53:27 +0000 (14:53 +0100)]
Fix two leaks in the pyxc interface. The dictionaries are being added
to lists, and an extra ref was being left behind.

Signed-off-by: Sean Perry <sean@xensource.com>
Signed-off-by: Robert Read <robert@xensource.com>
20 years agomerge
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 13:41:25 +0000 (14:41 +0100)]
merge

20 years agomerge
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 12:30:05 +0000 (13:30 +0100)]
merge

20 years agoCleanup various shadow mode asserts.
Michael.Fetterman@cl.cam.ac.uk [Tue, 8 Nov 2005 12:26:50 +0000 (13:26 +0100)]
Cleanup various shadow mode asserts.

Separate out the ability for domains to be able to write to their
pagetables (ala "writable page tables", which uses write-protected PTEs
to address the page tables: this is shadow_mode_write_all()) from the
right of a domain to create a PTE with write permissions that points
at a page table (this is shadow_mode_wr_pt_pte())...

Minor cleanup of SHADOW_DEBUG (at least make it compilable) in shadow.c.

20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:31:43 +0000 (12:31 +0100)]
Merged.

20 years agoAdded file missed on commit of earlier patch by Dan Smith.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:30:38 +0000 (12:30 +0100)]
Added file missed on commit of earlier patch by Dan Smith.

20 years agoThis patch removes all of the auto-generated files that were checked
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:28:19 +0000 (12:28 +0100)]
This patch removes all of the auto-generated files that were checked
in with xm-test in changeset 7634.  It also adds an "autogen" script
that re-creates these files.

The auto-generated files really don't need to be in the tree, as they
should be generated by the user on the machine where they plan to run
xm-test.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoBug fix in error handling in get_page_from_l4e()
mafetter@aosda.research.intel-research.net [Tue, 8 Nov 2005 11:26:48 +0000 (12:26 +0100)]
Bug fix in error handling in get_page_from_l4e()

20 years agoRemove unused and unnecessary gnttab ioctl.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:25:09 +0000 (12:25 +0100)]
Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoUpdate tools/examples docs.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:17:53 +0000 (12:17 +0100)]
Update tools/examples docs.

Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
20 years agoAfter move randomMac to netif in 7637, we need to this for vmx guest.
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:16:37 +0000 (12:16 +0100)]
After move randomMac to netif in 7637, we need to this for vmx guest.
otherwise, if no mac address configured, vmx guest can not be created.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoRemove the execute bit from shell snipplets (the -common files not
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:14:33 +0000 (12:14 +0100)]
Remove the execute bit from shell snipplets (the -common files not
starting with #!) found in the example directory under tools. It
further changes the installation path of the udev rules to comply with
what debian does: It places the rules file in /etc/udev/ und creates a
symlink to it in /etc/udev/rules.d.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
20 years agoFix the clean target of the tools/xenstore Makefile to
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 11:06:18 +0000 (12:06 +0100)]
Fix the clean target of the tools/xenstore Makefile to
remove all files created. Currently leaves some of its
files behind.

Signed-off-by: Tobias Hunger <tobias@aquzul.com>
20 years agoThis patch increments the version number of xm-test so that we can
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:02:10 +0000 (12:02 +0100)]
This patch increments the version number of xm-test so that we can
distinguish reports from the 0.4.0 tarball and in-tree versions.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds a URL to the reporting site, as well as a note about
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:01:09 +0000 (12:01 +0100)]
This patch adds a URL to the reporting site, as well as a note about
running with lots of free memory to the README.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years ago1. Set the UID and EUID of the process when trying to switch to a
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 11:00:23 +0000 (12:00 +0100)]
1. Set the UID and EUID of the process when trying to switch to a
   non-root user.
2. Better handle the debug-printing inside the console

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years ago1. Unmark the 07 and 08 tests of block_attach as XFAIL
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 10:56:55 +0000 (11:56 +0100)]
1. Unmark the 07 and 08 tests of block_attach as XFAIL
2. Change the MEM_PER_DOM amount in 11_create_concurrent to 24MB, so
   that the test will run on x86_64.
3. Increase the number of DomUs created in 12_create_concurrent to 5
4. Fix a logic error in 01_unpause
5. Add a test 06_help that checks all xm commands with 0-10 arguments
   to make sure none of them traceback with varying argument counts.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Tue, 8 Nov 2005 10:44:48 +0000 (11:44 +0100)]
merge

20 years agoFixed domain refcounting bug (found by inspection)
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:38:32 +0000 (11:38 +0100)]
Fixed domain refcounting bug (found by inspection)

20 years agoFixed a bug in the audit code.
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:36:55 +0000 (11:36 +0100)]
Fixed a bug in the audit code.
We don't hold a type refcount to the user's ptbase frame in
shadow refcounting mode.

20 years agoFixed domain refcounting bug (found by inspection)
unknown@aosda.research.intel-research.net [Tue, 8 Nov 2005 10:36:37 +0000 (11:36 +0100)]
Fixed domain refcounting bug (found by inspection)

20 years agoRemove unused parameter.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 10:35:25 +0000 (11:35 +0100)]
Remove unused parameter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix vncviewer spawning so it actually works.
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:31:16 +0000 (11:31 +0100)]
Fix vncviewer spawning so it actually works.
How did this ever work for other people?

20 years agoAdded some minor defensive coding/error handling in xc_linux_build.c
mafetter@seana.research.intel-research.net [Tue, 8 Nov 2005 10:29:07 +0000 (11:29 +0100)]
Added some minor defensive coding/error handling in xc_linux_build.c

20 years agoMerge xen-unstable into xen-ia64-unstable again (to get ioapic changes)
djm@kirby.fc.hp.com [Tue, 8 Nov 2005 02:40:31 +0000 (20:40 -0600)]
Merge xen-unstable into xen-ia64-unstable again (to get ioapic changes)

20 years agoMerged.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 02:35:25 +0000 (03:35 +0100)]
Merged.

20 years agoPush the process of waiting for devices to come up right out of DevController,
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 02:34:23 +0000 (03:34 +0100)]
Push the process of waiting for devices to come up right out of DevController,
and drive this process from xm create.  Architecturally, this separates the
process of domain creation from the process of waiting for devices, allowing
tools to choose when to perform that wait (if at all).  This places the waiting
in the same category as the unpause after domain creation, architecturally.

The main advantage to this approach is that it takes waiting for devices out
of the scope of XendDomain's domains_lock.  When restarting a domain, the
watch would fire for @releaseDomain while we were waiting for new domains to
come up.  This would deadlock the watch thread, as no more new watches could
be delivered.  Closes bug #387.

In the longer term, we expect to be able to wait for devices to come up
completely, not simply to wait for the hotplug scripts to run, and so it is
necessary then to move the waiting procedure right out of the server, so that
it can be performed after the domain unpause.  Without unpausing the domain,
the frontends will not come up, and so we cannot detect successful device
completion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRearrange restart logic so that a failure to restart a domain does not cause
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 02:07:57 +0000 (03:07 +0100)]
Rearrange restart logic so that a failure to restart a domain does not cause
cascading secondary errors.  Fixes bug #384.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMark plenty of variables as unused, and remove an unused import.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 01:51:34 +0000 (02:51 +0100)]
Mark plenty of variables as unused, and remove an unused import.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoRemove unused XENSTORED_XYZ constants.
emellor@leeni.uk.xensource.com [Tue, 8 Nov 2005 00:26:16 +0000 (01:26 +0100)]
Remove unused XENSTORED_XYZ constants.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoEnable ar.unat handling for fast paths (by Anthony Xu)
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 22:53:25 +0000 (16:53 -0600)]
Enable ar.unat handling for fast paths (by Anthony Xu)

20 years agoRename parameter to avoid shadowing builtin.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 20:22:02 +0000 (21:22 +0100)]
Rename parameter to avoid shadowing builtin.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMinor Makefile cleanup in tools/libxc/Makefile
unknown@aosda.research.intel-research.net [Mon, 7 Nov 2005 17:35:55 +0000 (18:35 +0100)]
Minor Makefile cleanup in tools/libxc/Makefile

20 years agoMissed ia64 changes to one drivers/xen file
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 17:25:59 +0000 (11:25 -0600)]
Missed ia64 changes to one drivers/xen file

20 years agoMake xen0's default config match itself after a "make oldconfig"
unknown@aosda.research.intel-research.net [Mon, 7 Nov 2005 17:25:09 +0000 (18:25 +0100)]
Make xen0's default config match itself after a "make oldconfig"

20 years agoFix pagetable pinning logic for xen/i386 kernels. The pin
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 17:14:45 +0000 (18:14 +0100)]
Fix pagetable pinning logic for xen/i386 kernels. The pin
flag is now associated with the pgd rather than the mm -- this
avoids a race where a pgd is allocated from the pgd_cache but,
before it gets associated with an mm, the kernel suspends itself.
At this point the kernel mappings will not get rewritten when the
kernel is resumed, and the system will fail.

A further advantage is that the code is slightly simpler and less
invasive (no changes to mm_context for example).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMerge latest xen-unstable into xen-ia64-unstable
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 17:13:38 +0000 (11:13 -0600)]
Merge latest xen-unstable into xen-ia64-unstable

20 years agoMinor updates to .hgignore
unknown@aosda.research.intel-research.net [Mon, 7 Nov 2005 16:54:55 +0000 (17:54 +0100)]
Minor updates to .hgignore
Added "tools/.*/TAGS" entry.
Sorted all entries.

20 years agoFast tlb miss reflection (mostly working, missing robustness, default off)
djm@kirby.fc.hp.com [Mon, 7 Nov 2005 16:40:42 +0000 (10:40 -0600)]
Fast tlb miss reflection (mostly working, missing robustness, default off)
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>
I've been maintaining this out-of-tree partially finished for some time
so am now checking it in but default off.  The current version needs
some additional error checking and only works (fast) for domain0, but
it makes a significant performance differenece.

20 years agoThis patch remove the obsolete ioapic code on qemu device model side.
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 15:37:58 +0000 (16:37 +0100)]
This patch remove the obsolete ioapic code on qemu device model side.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoThis patch add virtual IOAPIC support for VMX guest.
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 15:36:27 +0000 (16:36 +0100)]
This patch add virtual IOAPIC support for VMX guest.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoThis patch change the vmx mmio handler to static.
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 15:35:46 +0000 (16:35 +0100)]
This patch change the vmx mmio handler to static.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoMerged.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 14:06:27 +0000 (15:06 +0100)]
Merged.

20 years agoAdded description of the behaviour of rename-restart.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 14:06:00 +0000 (15:06 +0100)]
Added description of the behaviour of rename-restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFixed syntax error in iopif patch.
jbulpin@wicket.uk.xensource.com [Mon, 7 Nov 2005 12:04:27 +0000 (13:04 +0100)]
Fixed syntax error in iopif patch.

Signed-off-by: James Bulpin <james@xensource.com>
20 years agomerge
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 11:53:38 +0000 (12:53 +0100)]
merge

20 years agofast_flush_area() should index the unmap request array using
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 11:52:49 +0000 (12:52 +0100)]
fast_flush_area() should index the unmap request array using
invcount, not i. Also, fix initialisation of pending_grant_handles:
it was happening too late, and the use of memset() was bogus.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove the randomMAC method from xm.create into server.netif. This way, it can
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:36:53 +0000 (12:36 +0100)]
Move the randomMAC method from xm.create into server.netif.  This way, it can
be shared with other command line tools, and the xm network-attach command.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoFix misnamed call to legacy_mask_to_prefix. Thanks to Tim Moreton for finding
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:36:44 +0000 (12:36 +0100)]
Fix misnamed call to legacy_mask_to_prefix.  Thanks to Tim Moreton for finding
this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoDiagnostic for hitting the nloopbacks limit. This is presumably the cause of
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:36:35 +0000 (12:36 +0100)]
Diagnostic for hitting the nloopbacks limit.  This is presumably the cause of
all the "two bridges don't work" bugs that have been reported (bug #381).

Consideration will be given to raising the default limit -- this is just a
diagnostic of the problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoWholesale import of xm-test 0.4.0.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:36:16 +0000 (12:36 +0100)]
Wholesale import of xm-test 0.4.0.

This is not yet integrated with the rest of the Xen build system.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoHack around problem whereby VMX domains (using the ioemu device) now fail
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:35:06 +0000 (12:35 +0100)]
Hack around problem whereby VMX domains (using the ioemu device) now fail
because the new hotplug script error checking kicks in.

ioemu really ought to move out of blkif.py.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdded assertion, to stop it blowing up more obscurely a little later.
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:30:35 +0000 (12:30 +0100)]
Added assertion, to stop it blowing up more obscurely a little later.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoTidy exception handling on IntroduceDomain, quieten down one debug message, add
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:30:16 +0000 (12:30 +0100)]
Tidy exception handling on IntroduceDomain, quieten down one debug message, add
another.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoMake xenstored reopen its trace file on SIGHUP. This allows one to rotate the
emellor@leeni.uk.xensource.com [Mon, 7 Nov 2005 11:28:53 +0000 (12:28 +0100)]
Make xenstored reopen its trace file on SIGHUP.  This allows one to rotate the
logs beneath the daemon.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agoAdd support for the ioport_permission dom0 op to xend and xm
kaf24@firebug.cl.cam.ac.uk [Mon, 7 Nov 2005 11:05:15 +0000 (12:05 +0100)]
Add support for the ioport_permission dom0 op to xend and xm

xm now accepts a parameter 'ioports' that accepts a hex ioport
or ioport range, in the form 02f8[-02ff]

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
20 years agoRevert c/s 7626 -- it's missing a new file.
kaf24@firebug.cl.cam.ac.uk [Sun, 6 Nov 2005 18:50:33 +0000 (19:50 +0100)]
Revert c/s 7626 -- it's missing a new file.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix error path in blkback driver where a grant mapping in the
kaf24@firebug.cl.cam.ac.uk [Sun, 6 Nov 2005 16:50:24 +0000 (17:50 +0100)]
Fix error path in blkback driver where a grant mapping in the
middle of a batch fails. Spotted by Harry Butterworth (IBM).

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd support for the ioport_permission dom0 op to xend and xm
kaf24@firebug.cl.cam.ac.uk [Sun, 6 Nov 2005 15:40:33 +0000 (16:40 +0100)]
Add support for the ioport_permission dom0 op to xend and xm

xm now accepts a parameter 'ioports' that accepts a hex ioport
or ioport range, in the form 02f8[-02ff]

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
20 years agoAdded domain_ioport_permission to the python module xen.lowlevel.xc,
kaf24@firebug.cl.cam.ac.uk [Sun, 6 Nov 2005 15:40:15 +0000 (16:40 +0100)]
Added domain_ioport_permission to the python module xen.lowlevel.xc,
wrapping the equivalent libxc call

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
20 years agoAdded xc_domain_ioport_permission to libxc, which wraps the dom0 op
kaf24@firebug.cl.cam.ac.uk [Sun, 6 Nov 2005 15:39:55 +0000 (16:39 +0100)]
Added xc_domain_ioport_permission to libxc, which wraps the dom0 op

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
20 years agoThis patch adds a new boot parameter, dom0_ioports_disable, which
kaf24@firebug.cl.cam.ac.uk [Sun, 6 Nov 2005 15:39:02 +0000 (16:39 +0100)]
This patch adds a new boot parameter, dom0_ioports_disable, which
accepts a comma seperated list of hex ioports and/or ioport ranges
(eg. dom0_ioports_disable=02f8-02ff,03f8-03ff), and applies them to dom0.

Signed-off-by: Jody Belka <knew (at) pimb (dot) org>
20 years agoThis patch is intended to make qemu support ia64/vti. We have validated
kaf24@firebug.cl.cam.ac.uk [Sat, 5 Nov 2005 10:30:01 +0000 (11:30 +0100)]
This patch is intended to make qemu support ia64/vti. We have validated
it against latest xen-unstable.hg, both ia32 and x86-64 are not
affected.

Signed-off-by Ke Yu <ke.yu@intel.com>
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Nakajima Jun <nakajima.jun@intel.com>
Signed-off-by Anthony Xu <anthony.xu@intel.com>

20 years ago This patch is to remove the pit_timer when the vmx domain is
kaf24@firebug.cl.cam.ac.uk [Sat, 5 Nov 2005 10:26:29 +0000 (11:26 +0100)]
    This patch is to remove the pit_timer when the vmx domain is
inactive to save HV external IRQ caused by ac_time and some cleanup for
ioapic in HV.
Thx,eddie

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
20 years agovlapic_init alloc memory for struct vlapic, so it should do a memset on
kaf24@firebug.cl.cam.ac.uk [Sat, 5 Nov 2005 10:23:02 +0000 (11:23 +0100)]
vlapic_init alloc memory for struct vlapic, so it should do a memset on
it, not vlapic_reset.

Signed-off-by: Xin Li <xin.b.li@intel.com>
20 years agoQuiet down balloon driver.
smh22@firebug.cl.cam.ac.uk [Sat, 5 Nov 2005 09:55:38 +0000 (10:55 +0100)]
Quiet down balloon driver.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoCheck correct flag in grant transfer - this eliminates the most common
smh22@firebug.cl.cam.ac.uk [Sat, 5 Nov 2005 09:54:12 +0000 (10:54 +0100)]
Check correct flag in grant transfer - this eliminates the most common
source of 'zombie-' domains.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoMinor driver code changes/rearrangement to reduce ia64-specific patches
djm@kirby.fc.hp.com [Fri, 4 Nov 2005 16:40:29 +0000 (10:40 -0600)]
Minor driver code changes/rearrangement to reduce ia64-specific patches
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoRemove shadow audit debugging. Too noisy for
kaf24@firebug.cl.cam.ac.uk [Fri, 4 Nov 2005 15:01:49 +0000 (16:01 +0100)]
Remove shadow audit debugging. Too noisy for
log-dirty mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSpecifying 'mem=' as Linux boot parameter disables the default
kaf24@firebug.cl.cam.ac.uk [Fri, 4 Nov 2005 10:46:10 +0000 (11:46 +0100)]
Specifying 'mem=' as Linux boot parameter disables the default
8MB slack in the mem_map and the p2m table.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoThis is a fix for some device model corner cases including:
kaf24@firebug.cl.cam.ac.uk [Fri, 4 Nov 2005 10:08:45 +0000 (11:08 +0100)]
This is a fix for some device model corner cases including:
 1: mistake sequence of set/clr to virtual IRQ line.
 2: wrong sequence of IRQ request clear
 3: Add one more place to enable_irq_window.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
20 years agoThis patch adds a check to make sure the config file passed to
kaf24@firebug.cl.cam.ac.uk [Fri, 4 Nov 2005 10:06:41 +0000 (11:06 +0100)]
This patch adds a check to make sure the config file passed to
vnet-create is correct.  This is better than throwing IOError, because
IOError's are currently reported as xend communication failures.
Also, fix the IOError handling at the end of the file so we don't get
a stack dump if that path is taken.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis is another patch that adds an arg_check() to domid and domname so
kaf24@firebug.cl.cam.ac.uk [Fri, 4 Nov 2005 10:05:10 +0000 (11:05 +0100)]
This is another patch that adds an arg_check() to domid and domname so
that we don't dump stack if a user runs either without an argument.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoThis patch adds an arg_check into the set_vcpus code in xm, so that we
kaf24@firebug.cl.cam.ac.uk [Fri, 4 Nov 2005 10:03:20 +0000 (11:03 +0100)]
This patch adds an arg_check into the set_vcpus code in xm, so that we
don't output a stack trace if <2 arguments are passed.

Signed-off-by: Dan Smith <danms@us.ibm.com>
20 years agoEnable test for running_on_xen from modules
djm@kirby.fc.hp.com [Fri, 4 Nov 2005 03:37:29 +0000 (21:37 -0600)]
Enable test for running_on_xen from modules
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoFix gcc-3.4 compiler errors (submitted by Takebe Akio)
djm@kirby.fc.hp.com [Fri, 4 Nov 2005 00:06:15 +0000 (18:06 -0600)]
Fix gcc-3.4 compiler errors (submitted by Takebe Akio)

20 years agoOops, backout accidental test config, committed in wrong directory
djm@kirby.fc.hp.com [Thu, 3 Nov 2005 22:50:44 +0000 (16:50 -0600)]
Oops, backout accidental test config, committed in wrong directory

20 years agoTest new config
djm@kirby.fc.hp.com [Thu, 3 Nov 2005 22:01:38 +0000 (16:01 -0600)]
Test new config